local console = ac.console

for i, button in ipairs(console.ability) do 
    local panel = console.abilitydetail[i]
    button.highlight = panel:add_highlight([[UI\Widgets\Console\Human\CommandButton\human-activebutton.blp]])
    button.highlight:hide()
end


for i, button in ipairs(console.item) do 
    local panel = console.itemdetail[i]
    button.highlight1 = panel:add_highlight([[UI\Widgets\BattleNet\bnet-button01-highlight-mouse.blp]])
    button.highlight1:hide()
end


ac.console:event '控制台-高亮物品按钮'(function(_,button)
    button.highlight1:show()
end)

ac.console:event '控制台-离开物品按钮'(function(_,button,unit)
    button.highlight1:hide()
end)


--local ui = require '系统.基础界面.状态显示'
--ui:set_position(770,840)